package ex9;

import java.util.Arrays;
import java.util.Scanner;


public class Test2 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		scanner.nextLine();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			String string = scanner.nextLine();
			try {
				int x = Integer.parseInt(string);
				a[i] = x;
			} catch (Exception e) {
				// TODO: handle exception
				System.out.println(e);
				i--;
			}
			
		}
		System.out.println(Arrays.toString(a));
		
		
		
		
		
		scanner.close();

	}
}

